#!/usr/bin/env node

const cp = require('child_process');
     
let  cat = cp.spawn('cat',['02-spawn-v1.js']);
let  sort = cp.spawn('sort');
let  uniq = cp.spawn('uniq');

cat.stdout.pipe(sort.stdin);
sort.stdout.pipe(uniq.stdin);
uniq.stdout.pipe(process.stdout);
